package mafia.younoodle.ilovemystuff.data;

import java.text.Collator;
import java.util.Comparator;

public final class Category {

    public final static Comparator<Category> comparator = new Comparator<Category>() {
    	private final Collator collator = Collator.getInstance();
    	@Override
    	public int compare(Category object1, Category object2) {
    		return (object1.id - object2.id);
    	}
    };

    public int id;
	public int parentId;
	public String name;
	
	public Category(int id, String name, int parent) {
		this.id = id;
		this.name = name;
		this.parentId = parent;
	}

	@Override
	public String toString() {
		return "id: " + id + ", name: " + name + ", parentId: " + parentId;
	}
}
